###

events: ['added', 'removed'],

###
class tree.ui.Container extends tree.ui.Widget
	constructor: () ->
	    super
	    @children = []
	
	get_children: () ->
		return @children;
    
	add: (child) ->
		@children.push child
		child.parent = @
		@emit 'update', {}
	
	remove: (child) ->
		@children = @children.remove child
		@emit 'update', {}
